package com.bball.court.http;

import android.content.Context;

import com.bball.court.model.Court;
import com.bball.court.model.CourtList;
import com.bball.court.model.google.GoogleCourtInstanceCreator;
import com.bball.court.model.google.GoogleCourtList;
import com.bball.court.model.google.GoogleCourtListInstanceCreator;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GetClosestCourtRequest4Test extends GetClosestCourtRequest<GoogleCourtList> {

    public GetClosestCourtRequest4Test(Context context, String url, Class<GoogleCourtList> clazz, String tag, GetCourtsRequestCallbacks callbacks) {
        super(context, url, clazz, tag, callbacks);
    }
    
    @Override
    protected Gson getGson(Context context) {
        return new GsonBuilder().registerTypeAdapter(Court.class, new GoogleCourtInstanceCreator()).registerTypeAdapter(CourtList.class, new GoogleCourtListInstanceCreator()).create();
    }

}
